package com.example.Annocation.importTry;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @Description TODO
 * @Date 2024/5/15 0:13
 * @Created by houjunfeng
 */
public class MyImportSelector implements ImportSelector {
    //AnnotationMetadata  当前标注了@import注解所在类的所有注解信息
    @Override
    public String[] selectImports(AnnotationMetadata var1){
        return new String[]{"com.example.annocation.commons.Color","com.example.annocation.commons.Red"};
    }
}
